//
//  BJConfigManager.m
//  
//
//  Created by  on 2023/3/6.
//  Copyright © 2023 lishen. All rights reserved.
//

#import "BJConfigManager.h"

@implementation BJConfigManager

+ (BJConfigManager *)sharedManager {
    static BJConfigManager *manager = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [[self alloc] init];

    });
    return manager;
}

- (NSDictionary *)getDefHeaders{
    // 获取当前应用的主bundle
    NSBundle *mainBundle = [NSBundle mainBundle];
    // 获取bundle的标识符，通常是包名
    NSString *bundleIdentifier = [mainBundle bundleIdentifier];
    NSDictionary *headers = @{
        @"pkg": bundleIdentifier,
        @"ver":kCurVersion,                                        //版本号
        @"device-id":[UUIDStrengthen getDeviceIDInKeychain],      //设备id
        @"model":[[UIDevice currentDevice] model],                 //设备型号
        @"lang":[[NSLocale preferredLanguages] objectAtIndex:0],   //语言
        @"sys_lan":[[NSLocale preferredLanguages] objectAtIndex:0],//系统语言
        @"is_anchor":@"false",                                    //是否主播
        @"platform":@"iOS",                      //平台
        

    };
    return headers;
}


@end
